package com.ktjy;

import com.ktjy.task.MyQuartzJob;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.ktjy.mapper")
@EnableScheduling // 开启定时任务
public class ZjgdcrmApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ioc = SpringApplication.run(ZjgdcrmApplication.class, args);
        MyQuartzJob bean = ioc.getBean(MyQuartzJob.class);
        System.out.println(bean);
    }

}
